using System;

namespace Catastrophe.Common.AttributeEx
{
	public class FlexCharSeriesAttribute : Attribute
	{
		public string ChartName { get; set; }

		public string Content { get; set; }

		public ChartShowStyleEnum Visible { get; set; }

		public string Fill { get; set; }

		public string Stroke { get; set; }

		public float StrokeWidth { get; set; } = 2f;


		public bool AxisYMulti { get; set; }

		public string AxisYTittle { get; set; }

		public AxisYPosEnum AxisYPosition { get; set; } = AxisYPosEnum.Left;


		public double AxisYMin { get; set; } = -1.0;


		public double AxisYMax { get; set; } = -1.0;


		public FlexCharSeriesAttribute(string chartName, string content, ChartShowStyleEnum visible = ChartShowStyleEnum.Legend, string fill = "", string stroke = "", int strokeWidth = 2)
		{
			this.ChartName = chartName;
			this.Content = content;
			this.Visible = visible;
			this.Fill = fill;
			this.Stroke = stroke;
			this.StrokeWidth = strokeWidth;
		}
	}
}
